import request from '@/utils/request'

// 创建套票
export function createTicket(data = {}) {
  return request.post('/packageTicket/create', data)
}

// 创建套票
export function getShopList(params = {}) {
  return request.get('/packageTicket/selectShops', { params })
}

// 获取产品
export function getProductList(data = {}) {
  return request.post('/packageTicket/selectPackageTicketProduct', data)
}

// 获取套票列表
export function getTicketList(data = {}) {
  return request.post('/packageTicket/page', data)
}

// 撤回套票申请
export function rollbackTicket(params = {}) {
  return request.get('/packageTicket/rollback', { params })
}

// 删除套票
export function deleteTicket(params = {}) {
  return request.get('/packageTicket/delete', { params })
}

// 修改套票状态
export function editTicketStatus(data = {}) {
  return request.post('/packageTicket/editStatus', data)
}

// 获取套票详情
export function getTicketDetail(params = {}) {
  return request.get('/packageTicket/detail', { params })
}
